package com.example.demo.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = TopicQueueConfig.queueName0)
public class TopicReceive1 {

    @RabbitHandler
    public  void receive(String message){
        System.out.println("TopicReceive1->"+TopicQueueConfig.queueName0+"->"+message);
    }
}
